package edu.sctu.zhengsenwen.month201506.day20150611.Array;

/**
 * Created by user15 on 2015/6/12.
 */
public class C04E05 {

    public static void main(String[] args) {

        int i;
        int j;
        int a[][];
        a= new int[5][];

        a[0]= new int[1];
        a[1]= new int[2];
        a[2]= new int[3];
        a[3]= new int[4];
        a[4]= new int[5];

        a[0][0] = 1;
        for(i=0;i<2;i++){
            a[1][i] =2*(i+1);
        }


        for(i=0;i<3;i++){
            a[2][i] =3*(i+1);
        }


        for(i=0;i<4;i++){
            a[3][i] =4*(i+1);
        }


        for(i=0;i<5;i++){
            a[4][i] =5*(i+1);
        }
            for(i = 0;i<5;i++){
                for(j=0;j<=i;j++){

                    System.out.print(a[i][j]+"\t");
                }
        System.out.println();

        }
    }

}
